package com.nxmu.hire.service;

import com.github.pagehelper.PageInfo;
import com.nxmu.hire.common.exception.ServiceException;
import com.nxmu.hire.model.User;
import com.nxmu.hire.vo.FindTeacherReqVo;
import com.nxmu.hire.vo.FindTeacherResVo;
import com.nxmu.hire.vo.TeacherAddReqVo;

/**
 * @author Lee
 *
 */
public interface TeacherService {

	/**
	 * 添加教师
	 * @param teacher
	 */
	void saveTeacher(TeacherAddReqVo teacherAddReqVo) throws ServiceException;

	/**
	 * 分页查询教师信息
	 * @param findTeacherReqVo
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	PageInfo<User> findTeacherByPage(FindTeacherReqVo findTeacherReqVo);

	/**
	 * 按照编号查询教师信息
	 * @param userId
	 * @return
	 */
	FindTeacherResVo findTeacherByUserId(String userId);

	/**
	 * 根据id删除教师信息
	 * @param userId
	 */
    void deleteById(String userId) throws ServiceException;

	/**
	 * 修改教师信息
	 * @param user
	 * @throws ServiceException
	 */
	void updateTeacher(User user) throws ServiceException;
}
